import request from '@/config/axios'

// 获取按时长统计的饼图数据
export const getTimePieData = async (params) => {
  return await request.get({ url: `/call/workbench/get-time-pie-data`, params })
}
//获取按日期统计的员工消费账单（折线图）
export const getBillLineData = async (params) => {
  return await request.get({ url: `/call/workbench/get-bill-line-data`, params })
}
// 获取概要统计
export const getWorkBench = async (params) => {
  return await request.get({ url: `/call/workbench/get-summary-data`, params })
}
// 获取按日期统计的员工外呼总量（柱状图）
export const getTimeBar = async (params) => {
  return await request.get({ url: `/call/workbench/get-time-bar-data`, params })
}
// 呼叫结果统计
export const getUntResultType = async (params) => {
  return await request.get({ url: `/call/workbench/count-data-by-result-type`, params })
}
